using System;
using System.Collections.Generic;
using System.Text;

namespace MicrosoftFrance.MCS.EPM2007
{
    class PSIFormatStrings
    {
        public static string ResourceName(string resname)
        {
            string resourceName = resname;
            resourceName = resourceName.Replace("'", " ");
            resourceName = resourceName.Replace(":", " ");
            resourceName = resourceName.Replace(";", " ");
            resourceName = resourceName.Replace("<", " ");
            resourceName = resourceName.Replace(">", " ");
            resourceName = resourceName.Replace("#", " ");
            resourceName = resourceName.Replace(".", " ");
            resourceName = resourceName.Replace("/", " ");
            resourceName = resourceName.Replace("\\", " ");
            resourceName = resourceName.Replace("\"", " ");
            resourceName = resourceName.Replace("*", " ");
            resourceName = resourceName.Replace("?", " ");
            resourceName = resourceName.Replace("|", " ");
            resourceName = resourceName.Trim();
            return resourceName;
        }

        public static string ProjectName(string prjname)
        {
            string projectName = prjname;
            projectName = projectName.Replace("'", " ");
            projectName = projectName.Replace(":", " ");
            projectName = projectName.Replace(";", " ");
            projectName = projectName.Replace("<", " ");
            projectName = projectName.Replace(">", " ");
            projectName = projectName.Replace("#", " ");
            projectName = projectName.Replace(".", " ");
            projectName = projectName.Replace("/", " ");
            projectName = projectName.Replace("\\", " ");
            projectName = projectName.Replace("\"", " ");
            projectName = projectName.Replace("*", " ");
            projectName = projectName.Replace("?", " ");
            projectName = projectName.Replace("|", " ");
            projectName = projectName.Replace("-", " ");
            projectName = projectName.Trim();
            return projectName;
        }
    }
}
